package com.jeecg.demo.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Title: Entity
 * @Description: 机构管理
 * @author onlineGenerator
 * @date 2018-11-20 15:14:32
 * @version V1.0
 * 
 */
@Entity
@Table(name = "sys_orgnization", schema = "")
@SuppressWarnings("serial")
public class SysOrgnizationEntity implements java.io.Serializable {
    /** ID */
    private java.lang.Integer id;
    /** 机构编号 */
    @Excel(name = "机构编号", width = 15)
    private java.lang.Integer orgid;
    /** 系统编号 */
    private java.lang.Integer sysid;
    /** 机构名称 */
    @Excel(name = "机构名称", width = 15)
    private java.lang.String orgname;
    /** 上级部门编号 */
    @Excel(name = "上级部门编号", width = 15)
    private java.lang.Integer parentorgid;
    /** 排序 */
    @Excel(name = "排序", width = 15)
    private java.lang.Integer orderno;
    /** 是否有效 */
    @Excel(name = "是否有效", width = 15, dicCode = "ISN")
    private java.lang.String isvalid;
    /** 备注 */
    @Excel(name = "备注", width = 15)
    private java.lang.String note;

    /**
     *方法: 取得java.lang.Integer
     * 
     * @return: java.lang.Integer ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.TABLE, generator = "SYS_ORGNIZATION")
    @TableGenerator(name = "SYS_ORGNIZATION", pkColumnValue = "SYS_ORGNIZATION", table = "sys_sequence", pkColumnName = "name", valueColumnName = "sysid", initialValue = 1, allocationSize = 1)
    @Column(name = "ID", nullable = true, length = 20)
    public java.lang.Integer getId() {
        return this.id;
    }

    /**
     *方法: 设置java.lang.Integer
     * 
     * @param: java.lang.Integer ID
     */
    public void setId(java.lang.Integer id) {
        this.id = id;
        this.sysid = id;
        this.orgid = id;
    }

    /**
     *方法: 取得java.lang.Integer
     * 
     * @return: java.lang.Integer 机构编号
     */

    @Column(name = "ORGID", nullable = false, length = 19)
    public java.lang.Integer getOrgid() {
        return this.orgid;
    }

    /**
     *方法: 设置java.lang.Integer
     * 
     * @param: java.lang.Integer 机构编号
     */
    public void setOrgid(java.lang.Integer orgid) {
        this.orgid = orgid;
    }

    /**
     *方法: 取得java.lang.Integer
     * 
     * @return: java.lang.Integer 系统编号
     */

    @Column(name = "SYSID", nullable = false, length = 19)
    public java.lang.Integer getSysid() {
        return this.sysid;
    }

    /**
     *方法: 设置java.lang.Integer
     * 
     * @param: java.lang.Integer 系统编号
     */
    public void setSysid(java.lang.Integer sysid) {
        this.sysid = sysid;
    }

    /**
     *方法: 取得java.lang.String
     * 
     * @return: java.lang.String 机构名称
     */

    @Column(name = "ORGNAME", nullable = false, length = 50)
    public java.lang.String getOrgname() {
        return this.orgname;
    }

    /**
     *方法: 设置java.lang.String
     * 
     * @param: java.lang.String 机构名称
     */
    public void setOrgname(java.lang.String orgname) {
        this.orgname = orgname;
    }

    /**
     *方法: 取得java.lang.Integer
     * 
     * @return: java.lang.Integer 上级部门编号
     */

    @Column(name = "PARENTORGID", nullable = true, length = 19)
    public java.lang.Integer getParentorgid() {
        return this.parentorgid;
    }

    /**
     *方法: 设置java.lang.Integer
     * 
     * @param: java.lang.Integer 上级部门编号
     */
    public void setParentorgid(java.lang.Integer parentorgid) {
        this.parentorgid = parentorgid;
    }

    /**
     *方法: 取得java.lang.Integer
     * 
     * @return: java.lang.Integer 排序
     */

    @Column(name = "ORDERNO", nullable = true, length = 19)
    public java.lang.Integer getOrderno() {
        return this.orderno;
    }

    /**
     *方法: 设置java.lang.Integer
     * 
     * @param: java.lang.Integer 排序
     */
    public void setOrderno(java.lang.Integer orderno) {
        this.orderno = orderno;
    }

    /**
     *方法: 取得java.lang.String
     * 
     * @return: java.lang.String 是否有效
     */

    @Column(name = "ISVALID", nullable = true, length = 1)
    public java.lang.String getIsvalid() {
        return this.isvalid;
    }

    /**
     *方法: 设置java.lang.String
     * 
     * @param: java.lang.String 是否有效
     */
    public void setIsvalid(java.lang.String isvalid) {
        this.isvalid = isvalid;
    }

    /**
     *方法: 取得java.lang.String
     * 
     * @return: java.lang.String 备注
     */

    @Column(name = "NOTE", nullable = true, length = 200)
    public java.lang.String getNote() {
        return this.note;
    }

    /**
     *方法: 设置java.lang.String
     * 
     * @param: java.lang.String 备注
     */
    public void setNote(java.lang.String note) {
        this.note = note;
    }
}
